﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaskelot.SP.Core
{
	public static class DateTimeExtensions
	{
		public static string ToString(this DateTime? from, string def)
		{
			if (from.HasValue)
				return from.Value.ToShortDateString();
			else
				return def;
		}
	}
}
